package com.ybkj.daijia.server.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.Serializable;
import java.util.List;

public class MenuButton implements Serializable {

    /**
     * 点击事件
     */
    public static final String BUTTON_TYPE_CLICK = "click";
    /**
     * 跳转链接
     */
    public static final String BUTTON_TYPE_VIEW = "view";
    /**
     *
     */
    private static final long serialVersionUID = 8393959310145784038L;
    private Long id;

    private String name;

    private String type;

    private String key;

    private String url;

    private Long parentId;

    @JsonIgnore
    private List<MenuButton> sub_button;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public List<MenuButton> getSub_button() {
        return sub_button;
    }

    public void setSub_button(List<MenuButton> sub_button) {
        this.sub_button = sub_button;
    }

}